#pragma once
#include "base.h"
#include "game.h"
class player :
	public base
{

	int tileSize;
	ALLEGRO_BITMAP *playerImg;
	sprite camera;
	sprite box;
protected:
	int velCamX;

public:
	void Init(ALLEGRO_BITMAP *pImg);
	void Update();
	void Render();
	int GetXVel(){return player::velX;}
	int GetCoordX(){return player::coord.x;}
	int GetDirX(){return player::dirX;}
	sprite GetRect(){return player::box;}
	sprite GetCamera(){return player::camera;}
	void SetXvel(int vel);
	void SetCamXvel(int cVel);


	void MoveLeft();
	void MoveRight();
	void ResetAnimation();
	player(ALLEGRO_BITMAP *pImg);
	~player(void);
};

